package com.yyq.adms.yyb.patent.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.sos.pojo.BaseEntity;


/**
 * 获批专利
 * @author 杨应滨
 * @2012-12-5
 *
 */
@Entity
@Table(name="ownpatent")
public class OwnPatent extends BaseEntity  implements Serializable{
	private static final long serialVersionUID = 1L;
	
	/**
	 * 专利名称
	 */
	private String patentName;
	//专利号
	private String patentCode;
	//专利类型
	private String patentType;  //专利类型：1，发明专利；2，实用新型专利
	
	/**
	 * 专利人
	 */
	private String applicant;
	
	/**
	 * 发明人
	 */
	private String inventor;
	
	/**
	 * 取得方式
	 */
	private String catchWay; //1，自主申请；2，通过代理
	
	/**
	 * 取得时间
	 */
	private Date catchDate;
	
	/**
	 * 有效期
	 */
	private String validityDate;
	
	/**
	 * 所属平台ID
	 */
	private String belongPlateFormID;
	
	/**
	 * 报送单位
	 */
	private String sentDep;
	
	
	/**
	 * 是否全局可视
	 */
//	private Integer isGlobal;
	
	/**
	 * 是否有附件
	 */
//	private Integer isHavePatents;
	
	/**
	 * 是否可用
	 */
	private Integer isEnabled;

	/**
	 * 数据来源
	 */
	private Integer sourceID;

	/**
	 * 是否提交给总部
	 */
//	private Integer isSumbitTop;

	/**
	 * 所属年份，不需要加入数据库
	 */
	private String belongYear;

	public OwnPatent() {
		super();
	}

	public OwnPatent(String patentName, String applicant, String inventor,
			String catchWay, Date catchDate, String validityDate,
			String belongPlateFormID,Integer sourceID, String sentDep, Integer isEnabled) {
		super();
		this.patentName = patentName;
		this.applicant = applicant;
		this.inventor = inventor;
		this.catchWay = catchWay;
		this.catchDate = catchDate;
		this.validityDate = validityDate;
		this.belongPlateFormID = belongPlateFormID;
		this.sentDep = sentDep;
//		this.isGlobal = isGlobal;
//		this.isHavePatents = isHavePatents;
		this.isEnabled = isEnabled;
		this.sourceID = sourceID;
//		this.isSumbitTop = isSumbitTop;
  }

	@Column(name="applicant")
	public String getApplicant() {
		return applicant;
	}

	@Column(name="belongplateformid")
	public String getBelongPlateFormID() {
		return belongPlateFormID;
	}

	@Transient
	public String getBelongYear() {
		return belongYear;
	}

	@Column(name="catchdate")
	public Date getCatchDate() {
		return catchDate;
	}

	@Column(name="catchway")
	public String getCatchWay() {
		return catchWay;
	}

	@Column(name="inventor")
	public String getInventor() {
		return inventor;
	}

	@Column(name="isenabled")
	public Integer getIsEnabled() {
		return isEnabled;
	}

//	@Column(name="isglobal")
//	public Integer getIsGlobal() {
//		return isGlobal;
//	}
//
//	@Column(name="ishavepatents")
//	public Integer getIsHavePatents() {
//		return isHavePatents;
//	}
//
//	@Column(name="issubmittop")
//	public Integer getIsSumbitTop() {
//		return isSumbitTop;
//	}


	@Column(name="patentname")
	public String getPatentName() {
		return patentName;
	}

	@Transient
	public String getSentDep() {
		return sentDep;
	}

	@Column(name="sourceid")
	public Integer getSourceID() {
		return sourceID;
	}

	@Column(name="validitydate")
	public String getValidityDate() {
		return validityDate;
	}

	public void setApplicant(String applicant) {
		this.applicant = applicant;
	}

	public void setBelongPlateFormID(String belongPlateFormID) {
		this.belongPlateFormID = belongPlateFormID;
	}

	public void setBelongYear(String belongYear) {
		this.belongYear = belongYear;
	}

	public void setCatchDate(Date catchDate) {
		this.catchDate = catchDate;
	}

	public void setCatchWay(String catchWay) {
		this.catchWay = catchWay;
	}

	public void setInventor(String inventor) {
		this.inventor = inventor;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

	/**
	 * 批注
	 */
	private String endorse;
	
	
	/**
	 * 单位名称
	 */
	private String sentDepName;
	
	
//	public void setIsGlobal(Integer isGlobal) {
//		this.isGlobal = isGlobal;
//	}
//
//	public void setIsHavePatents(Integer isHavePatents) {
//		this.isHavePatents = isHavePatents;
//	}
//
//	public void setIsSumbitTop(Integer isSumbitTop) {
//		this.isSumbitTop = isSumbitTop;
//	}


	public void setPatentName(String patentName) {
		this.patentName = patentName;
	}

	public void setSentDep(String sentDep) {
		this.sentDep = sentDep;
	}

	public void setSourceID(Integer sourceID) {
		this.sourceID = sourceID;
	}

	public void setValidityDate(String validityDate) {
		this.validityDate = validityDate;
	}
	@Column(name="patentcode")	
	public String getPatentCode() {
		return patentCode;
	}

	public void setPatentCode(String patentCode) {
		this.patentCode = patentCode;
	}
	@Column(name="patenttype")
	public String getPatentType() {
		return patentType;
	}

	public void setPatentType(String patentType) {
		this.patentType = patentType;
	}
	@Column(name="endorse")
	public String getEndorse() {
		return endorse;
	}

	public void setEndorse(String endorse) {
		this.endorse = endorse;
	}

	@Column(name="sentdepname")
	public String getSentDepName() {
		return sentDepName;
	}

	public void setSentDepName(String sentDepName) {
		this.sentDepName = sentDepName;
	}
	
}
